package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户订阅活动模版消息
 * 添加字段:authAppId和authOpenId,之前的appId和openId默认订阅使用
 */
@Getter
@Setter
@Document("userActivitySubWechatTemplateMsg")
public class UserActivitySubWechatTemplateMsg extends EntityBase {
    @Indexed
    private String userId;
    @Indexed
    private String activityId;
    private String activityName;
    @Indexed
    private String platform;
    private String appId;
    private String taskId;
    @Indexed
    private String templateId;
    /**
     * 订阅时间
     */
    @Indexed
    private Date subTime;

    private String openId;

    private String unionId;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 授权appId
     */
    private String authAppId;
    /**
     * 授权的openId
     */
    private String authOpenId;
}
